import React from 'react'
import {Button,Result} from 'antd';
import { useNavigate } from 'react-router-dom';
import { HOME_URL } from '../../config/config';
import './index.scss'

const NotAuth=()=>{
    const navigate = useNavigate();
    const goHome=()=>{
        navigate(HOME_URL)
    };
    return(
    <Result
    status="403"
    title="403"
    subTitle="Sorry, you are not authorized to access this page."
    extra={
        <Button type='primary' onClick={goHome}>
            Back Home
        </Button>
    }
    >

    </Result>
    )
}
export default NotAuth;